<?php 

      mysql_connect("dbmy0036.whservidor.com","peritoonli_3","2013oano");

      mysql_select_db("peritoonli_3");

      $q=mysql_query("SELECT DISTINCT pais FROM igreja ORDER BY pais");

      while($e=mysql_fetch_assoc($q))

              $output[]=$e;

           print(json_encode($output));
     
    mysql_close();
?>